import time

# 获取当前时间的年月日
timestamp = time.time()   # 获取当前时间戳
struct_time = time.localtime(timestamp) # 时间元组
year = struct_time.tm_year
month = struct_time.tm_mon
day = struct_time.tm_mday
print(f"今天是{year}年{month}月{day}日")
